comment
authorJoey Hess <joeyh@joeyh.name>
Tue, 11 Mar 2025 16:53:32 +0000 (12:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 11 Mar 2025 16:53:32 +0000 (12:53 -0400)
doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment [new file with mode: 0644]

diff --git a/doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment b/doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment
new file mode 100644 (file)
index 0000000..3a41e92
--- /dev/null
@@ -0,0 +1,19 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""Re: just thinking out loud"""
+ date="2025-03-11T16:42:46Z"
+ content="""
+> And there could be some generic "helper" (or a number of them) which would then provide desired CLI interfacing over arbitrary command
+
+Absolutely!
+
+You do need to use "--" before your own custom dashed options.
+
+And bear in mind that "field=value" parameters passed to initremote will
+be passed on to the program. So you can have a generic helper
+that is instantiated with a parameter like --command=, which then gets used
+automatically when running addcompute:
+
+       git-annex initremote foo type=compute program=git-annex-compute-generic-helper -- --command='convert {inputs} {outputs}'
+       git-annex addcomputed --to=foo -- -i foo.jpeg -o foo.gif
+"""]]